/*
 * @Description: 
 * @Author: 葛玉根
 * @Date: 2021-03-06 10:51:22
 * @LastEditTime: 2021-03-08 00:59:31
 * @LastEditors: 葛玉根
 */
import { request } from 'umi'
import { addClassApiType} from '@/interface/classAdministration'
export const classDataApi = () => {
    return request('/manger/grade', { method: 'GET' })
}
export const allRoomDataApi = () => {
    return request('/manger/room', { method: 'GET' })
}
export const allCurriculumDataApi = () => {
    return request('/exam/subject', { method: 'GET' })
}
export const addClassApi = (data: addClassApiType) => {
    return request('/manger/grade', { method: 'POST', data})
}
export const deleClassApi = (data: any) => {
    return request('/manger/grade/delete', { method: 'DELETE', data })
}
export const editClassApi = (data: any) => {
    return request('/manger/grade/update', { method: 'PUT', data })
}